<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        li {
            list-style-type: none;
        }
        
        a {
            text-decoration: none;
        }
        
        header {
            background-color: #323232;
        }
        
        header .top {
            width: 985px;
            height: 31px;
            margin: auto;
        }
        
        header .top .toplist {
            width: 509px;
            /* margin-right: 20px; */
            float: left;
        }
        
        header .top .toplist li a {
            float: right;
            font-size: 10px;
            line-height: 31px;
            color: #666666;
            margin-left: 15px;
        }
        
        header .top .toplist li:hover a {
            background-color: crimson;
            color: white;
        }
        
        header .top .topimg {
            height: 15px;
            float: right;
        }
        
        header .top .topimg img {
            margin-left: 11px;
            margin-top: 5px;
            float: left;
        }
        
        header .top .topimg span {
            color: #666666;
            float: left;
            margin-top: 5px;
        }
        
        header .top .topimg li {
            float: left;
            line-height: 5px;
        }
        
        article .center {
            width: 985px;
            height: 97px;
            margin: auto;
            position: relative;
        }
        
        article .center img {
            position: absolute;
            top: -31px;
            width: 125px;
            height: 79px;
        }
        
        main {
            background-color: #f0f1f1;
            overflow: hidden;
        }
        
        main .main-con {
            width: 985px;
            /* height: 1062px; */
            background-color: white;
            margin: auto;
            margin-top: 25px;
            overflow: hidden;
            margin-bottom: 40px;
        }
        
        main .main-con #main-top {
            width: 885px;
            height: 104px;
            margin: auto;
            overflow: hidden;
        }
        
        main .main-con #main-top h1 {
            font-size: 16px;
            margin-top: 22px;
            margin-left: 30;
        }
        
        main .main-con #main-top span {
            display: block;
            float: left;
            font-size: 14px;
            margin-left: 1px;
        }
        
        main .main-con #main-top span {
            margin-top: 18px;
            color: #676767;
            display: block;
        }
        
        main .main-con #main-top .main-list {
            margin-top: 20px;
            float: left;
        }
        
        main .main-con #main-top .main-list li {
            float: left;
            font-size: 14px;
            padding-left: 20px;
            color: #a3a3a3;
        }
        
        main .main-con #main-top .main-list .span {
            padding-left: 0px;
        }
        
        main .main-con #main-top p {
            width: 80px;
            font-size: 12px;
            float: right;
            margin-top: 4px;
            color: #a3a3a3;
        }
        
        main .main-con .main-img {
            margin: auto;
            width: 885px;
        }
        
        main .main-con .main-img img {
            width: 885px;
        }
        
        main .main-con #main-content {
            width: 885px;
            margin: auto;
            overflow: hidden;
            margin-left: 30px;
        }
        
        .main-con span,
        .main-con h2,
        .main-con h3 {
            width: 885px;
            margin-top: 35px;
            font-size: 14px;
            font-weight: bolder;
            color: #4c4c4c;
            margin-left: 44px;
        }
        
        .main-con b {
            width: 885px;
            margin-top: 35px;
            font-size: 14px;
            font-weight: bolder;
            color: #4c4c4c;
            margin-left: 6px;
        }
        
        main .main-con p {
            width: 885px;
            height: 157px;
            margin-top: 35px;
            font-size: 14px;
            color: #4c4c4c;
            margin-left: 46px;
            font-weight: normal;
            line-height: 32px;
        }
        
        main .main-con h4 {
            width: 885px;
            height: 157px;
            margin-top: 35px;
            font-size: 14px;
            color: #4c4c4c;
            margin-left: 46px;
            font-weight: normal;
            line-height: 32px;
        }
        
        main .main-con .main-bottom {
            width: 885px;
            height: 93px;
            border-top: solid grey 1px;
            margin: auto;
            margin-left: 30px;
        }
        
        main .main-con .main-bottom h1 {
            width: 288px;
            font-size: 12px;
            color: #4c4c4c;
            float: left;
            margin-top: 40px;
            margin-left: -18px;
        }
        
        main .main-con .main-bottom h1 span,
        main .main-con .main-bottom h2 span {
            color: #a3a3a3;
            margin-left: 30px;
        }
        
        main .main-con .main-bottom h2 {
            width: 295px;
            font-size: 12px;
            color: #4c4c4c;
            float: right;
            margin-top: 40px;
        }
        
        footer {
            background-color: #323232;
        }
        
        footer .footer-con {
            width: 995px;
            height: 71px;
            margin: auto;
            /* margin-top: 50px; */
        }
        
        footer .footer-con img {
            float: left;
            height: 71px;
        }
        
        footer .footer-con .footer-bottom {
            width: 707px;
            height: 71px;
            float: right;
        }
        
        footer .footer-con .footer-bottom .footer-list {
            margin-top: 25px;
            margin-left: 299px;
        }
        
        footer .footer-con .footer-bottom .footer-list li {
            float: left;
            margin-right: 20px;
            margin-bottom: 5px;
            font-size: 12px;
            color: #8e8e8e;
        }
        
        footer .footer-con .footer-bottom h1 {
            margin-left: 127px;
            font-size: 10px;
            font-weight: normal;
            color: #8e8e8e;
        }
    </style>
</head>

<body>
    <header>
        <div class="top">
            <ul class="toplist">
                <li><a href="http://10.35.164.168/day25/解决方案列表.html">解决方案</a> </li>
                <li><a href="">传悦服务</a></li>
                <li><a href="">传悦资源</a></li>
                <li><a href="http://10.35.164.168/day25/案例-列表.html">传悦案例</a></li>
                <li><a href="">需求提交</a></li>
                <li><a href="http://10.35.164.168/day25/首页.html">网站首页</a></li>
            </ul>
            <ul class="topimg">
                <img src="img-list/iphon_03.png" alt="" class="img">
                <span>0536-60854</span>
                <li><img src="img-list/love_03.jpg" alt=""></li>
                <li><img src="img-list/love_05.jpg" alt=""></li>
                <li><img src="img-list/love_07.jpg" alt=""></li>
                <li><img src="img-list/love_09.png" alt=""></li>
            </ul>
        </div>
    </header>
    <article>
        <div class="center"><img src="img-list/logo_02.jpg" alt=""> </div>
    </article>
    <main>
        <div class="main-con">
            <div id="main-top">
                <h1>网络活动，社交性植入策略-------社会化语境下，让消费者说出喜好</h1>
                <!-- <span class="span">标签:</span> -->
                <ul class="main-list">
                    <li class="span">标签:</li>
                    <li>品牌营销</li>
                    <li>网络推广</li>
                    <li>网站建设</li>
                    <li>全网营销</li>
                </ul>
                <p>2013-08-13</p>
            </div>
            <div class="main-img">
                <img src="img-list/解决方案-详情_03.png" alt="">
            </div>
            <div id="main-content">
                <span>
                   
                </span>
                <b>
                   
                </b>
                <p>
                    Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore suscipit laborum soluta, in debitis ut, sapiente odio nemo similique, aperiam consequuntur assumenda et incidunt repellat! Iusto repellat similique facilis perspiciatis.
                </p>
                <h2>

                </h2>
                <h3>

                </h3>
                <h4>

                </h4>
            </div>
            <div class="main-bottom">
                <h1>
                    <span>上一片网站</span> ： 关于传悦网站根本减少话刘克军
                </h1>
                <h2>
                    <span>下一片网站</span> ： 关于传悦网站根本减少话刘克军
                </h2>
            </div>
        </div>
    </main>
    <footer>
        <div class="footer-con">
            <img src="img-list/bottom_logo.png" alt="">
            <div class="footer-bottom">
                <ul class="footer-list">
                    <li>关于传悦</li>
                    <li>新闻动态</li>
                    <li>穿越观点</li>
                    <li>联系传悦</li>
                    <li>加入传悦</li>
                    <li>付款账户</li>
                </ul>
                <h1>copyright&nbsp; @2013&nbsp;&nbsp;创梦网络科技有限责任公司&nbsp;||&nbsp;传悦chnyoo.cn All right Resverd 京ICP备12005221号</h1>
            </div>

        </div>
    </footer>
</body>

</html>
<script>
    let http = new XMLHttpRequest();
    http.open("get", "http://10.35.164.168:81/detail" + location.search)
    http.send();
    http.onreadystatechange = function() {
        if (http.readyState === 4) {
            let dlist = JSON.parse(http.responseText);
            dlist.forEach(function(item) {
                let maincontent = document.querySelector("#main-content")
                maincontent.querySelector("span").innerHTML = item.span
                maincontent.querySelector("b").innerHTML = item.b
                maincontent.querySelector("p").innerHTML = item.p
                maincontent.querySelector("h2").innerHTML = item.h2;
                maincontent.querySelector("h3").innerHTML = item.h3
                maincontent.querySelector("h4").innerHTML = item.h4
                maincontent.id = item.id;


            });
        }
    }
</script>